import {HashRouter as Router, Route, Redirect} from 'react-router-dom'
import Layout from './pages/Layout'
import Map from './pages/Map'
import City from './pages/City'
function App() {
  return (
    <Router>
      <div className="App">
        <Route exact path="/" render={()=><Redirect to="/layout/home"/>} />
        <Route path="/layout" component={Layout} />
        <Route path="/map" component={Map} />
        <Route path="/city" component={City} />
      </div>
    </Router>
  );
}

export default App;
